package com.qykj.ddhing.pda.demo.arms.test1;

import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * author : 0000
 * desc   :
 * time   : 2018/07/19
 * updateTime : 2018/07/19
 */
@ActivityScope
public class UserModel extends BaseModel implements UserContract.Model {
    @Inject
    public UserModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }


    @Override
    public Observable<User> getUsers(String userName, String pas) {
        return mRepositoryManager.obtainRetrofitService(LoginService.class)
                .getUsers(userName, pas);
    }
}
